
import config from "@/config";
import http from "@/utils/request";
const pandian={
    bigtime: { 
        url: `${config.MOCK_URL}/pandian/bigtime`,
        name: "已盘大仓",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    pdres: { 
        url: `${config.MOCK_URL}/pandian/pdres`,
        name: "登录获取用户菜单和权限,全部权限",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    pandian: { 
        url: `${config.MOCK_URL}/pandian/pandian`,
        name: "总表",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    smalltime: { 
        url: `${config.MOCK_URL}/pandian/smalltime`,
        name: "已盘小仓",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    big: { 
        url: `${config.MOCK_URL}/pandian/big`,
        name: "大仓所有差异商品，包括未盘，奢侈品已过滤",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    small: { 
        url: `${config.MOCK_URL}/pandian/small`,
        name: "小仓所有差异商品，包括未盘，奢侈品已过滤",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    long: { 
        url: `${config.MOCK_URL}/pandian/long`,
        name: "汇总表",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    imptable: { 
        url: `${config.MOCK_URL}/pandian/imptable`,
        name: "临期表",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    assignordetails: { 
        url: `${config.MOCK_URL}/pandian/assignordetails`,
        name: "盘点人",
        post: async function(params={}){
            return await http.post(this.url, params);
        }
    },
    // userlist: { 
    //     url: `${config.MOCK_URL}/pandian/userlist`,
    //     name: "复盘",
    //     post: async function(params={}){
    //         return await http.post(this.url, params);
    //     }
    // },
    upnum: { 
        url: `${config.MOCK_URL}/pandian/upnum`,
        name: "修改数量",
        post: async function(params={}){
            return await http.post(this.url, params);
        }
    },
    updqr: { 
        url: `${config.MOCK_URL}/pandian/updqr`,
        name: "修改到期日",
        post: async function(params={}){
            return await http.post(this.url, params);
        }
    },
    backups: { 
        url: `${config.MOCK_URL}/pandian/backups`,
        name: "备份",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    selprolist: { 
        url: `${config.MOCK_URL}/pandian/selprolist`,
        name: "根据仓库获取商品列表",
        post: async function(params={}){
            return await http.post(this.url, params);
        }
    },
    upstocks: { 
        url: `${config.MOCK_URL}/pandian/upstocks`,
        name: "生成库存表",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    updatebarcode: { 
        url: `${config.MOCK_URL}/pandian/updatebarcode`,
        name: "更新条码",
        get: async function(params={}){
            return await http.get(this.url, params);
        }
    },
    

}
const bigtime=  { 
    url: `${config.MOCK_URL}/pandian/bigtime`,
    name: "已盘大仓",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const smalltime= { 
    url: `${config.MOCK_URL}/pandian/smalltime`,
    name: "已盘小仓",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const selprolist={ 
    url: `${config.MOCK_URL}/pandian/selprolist`,
    name: "根据仓库获取商品列表",
    post: async function(params={}){
        return await http.post(this.url, params);
    }
}
const upnum= { 
    url: `${config.MOCK_URL}/pandian/upnum`,
    name: "修改数量",
    post: async function(params={}){
        return await http.post(this.url, params);
    }
}
const updqr={ 
    url: `${config.MOCK_URL}/pandian/updqr`,
    name: "修改到期日",
    post: async function(params={}){
        return await http.post(this.url, params);
    }
}
const big={ 
    url: `${config.MOCK_URL}/pandian/big`,
    name: "大仓所有差异商品，包括未盘，奢侈品已过滤",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const small= { 
    url: `${config.MOCK_URL}/pandian/small`,
    name: "小仓所有差异商品，包括未盘，奢侈品已过滤",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const assignordetails= { 
    url: `${config.MOCK_URL}/pandian/assignordetails`,
    name: "盘点人",
    post: async function(params={}){
        return await http.post(this.url, params);
    }
}
const Inventory= {
    url: `${config.MOCK_URL}/pandian/pandian`,
    name: "总表",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const long= { 
    url: `${config.MOCK_URL}/pandian/long`,
    name: "汇总表",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const imptable= { 
    url: `${config.MOCK_URL}/pandian/imptable`,
    name: "临期表",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const backups= { 
    url: `${config.MOCK_URL}/pandian/backups`,
    name: "备份",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const upstocks= { 
    url: `${config.MOCK_URL}/pandian/upstocks`,
    name: "生成库存表",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const updatebarcode= { 
    url: `${config.MOCK_URL}/pandian/updatebarcode`,
    name: "更新条码",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const selstock_status={
    url: `${config.MOCK_URL}/pandian/selstock_status`,
    name: "查询库存同步状态",
    get: async function(params={}){
        return await http.get(this.url, params);
    }
}
const uploadXlsx={
    url: `${config.MOCK_URL}/pandian/uploadXlsx`,
    name: "上传奢品仓商品编码",
    post: async function(params={}){
        return await http.post(this.url, params);
    }
}
//配置上传excel请求头
// headers: {
//     "Content-Type": "multipart/form-data",
//   }
const uploadLuxury={
    url: `${config.MOCK_URL}/pandian/uploadLuxury`,
    name: "上传奢品仓数据",
    from: async function(params={},config={}){
        return await http.from(this.url, params,config);
    }
}

export  {bigtime,smalltime,selprolist,upnum,updqr,big,small,assignordetails,Inventory,long,imptable,updatebarcode,upstocks,backups,selstock_status,uploadXlsx,uploadLuxury};
export default pandian;